<#assign tableid=auth.getuuid()>
<#assign formid=auth.getuuid()>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${rootpath}/Index/mytodo" method="post">
        <input type="hidden" name="pageSize" value="${(page.pageSize)!15}">
        <input type="hidden" name="pageCurrent" value="${(page.pageCurrent)!1}">
        <input type="hidden" name="orderField" value="${(page.orderField)!"wf_task.create_Time"}">
        <input type="hidden" name="orderDirection" value="${(page.orderDirection)!"desc"}">
        
        <div class="bjui-searchBar">
            <label>流程名称：</label><input type="text" value="${(wf_process.display_Name)!}" name="wf_process.display_Name" size="15" />&nbsp;
            <label>任务名称：</label><input type="text" value="${(wf_task.display_Name)!}" name="wf_task.display_Name" size="15" />&nbsp;
            <label>实例标题：</label><input type="text" value="${(pm_ext_wf_order.orderTitle)!}" name="pm_ext_wf_order.orderTitle" size="15" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true)" data-icon="undo">清空查询</a>&nbsp;
            <div class="pull-right">
                <a onclick="printtask('${formid}')" class="btn btn-blue">打印表格</a>
            </div>
        </div>
        
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <form action="" id="${formid}" class="pageForm" data-toggle="validate" method="post">
        <table id="${tableid}" class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit"  data-layout-h="0">
            <thead>
                <tr>
                    <th data-order-field="wf_process.display_Name" title="流程名称"><input type="text"   size="20%"></th>
                    <th data-order-field="wf_task.display_Name" title="任务名称"><input type="text"   size="20%"></th>
                    <th data-order-field="pm_ext_wf_order.orderTitle" title="实例标题"><input type="text"   size="25%"></th>
                	<th data-order-field="pm_user.name" title="申请人"><input type="text"  size="5%" ></th>
                	<th data-order-field="wf_task.expire_Time" title="期望完成日期"><input type="text"   size="15%"></th>
                	<th title="操作" width="15%">
                	</th>
                	<th  style="display:none;" title="_rowstatus"><input type="text" name="#index#*_rowstatus" value="Normal"></th>
                </tr>
            </thead>
            <tbody>
                <#if (page.pageData)?exists>
	                <#list page.pageData as item>
	                	<#if item?exists>
	                		<tr data-id="">
				                <td>${(item.processName)!}</td>
			       				<td>${(item.taskName)!}</td>
			       				<td>${(item.orderTitle)!}</td>
			       				<td>${(item.creator)!}</td>
			       				<td>${(item.expireTime)!}</td>
			       				<td data-notread="true"><a href="${rootpath}/Flow/task_view?taskid=${item.taskId}" data-toggle="dialog" data-id="${auth.getuuid()}" 
			                        			data-width="980" data-height="780" data-mask="true" data-type="POST" 
			                        			data-title="处理任务-${item.taskName}" class="btn btn-blue">处理</a></td>
                    			<td style="display:none;">Normal</td>
				            </tr>
	                	</#if>
	                </#list>
            	</#if>
            </tbody>
        </table>
 	</form>
    <div class="bjui-pageFooter">
		<div class="pages">
			<span>每页&nbsp;</span>
			<div class="selectPagesize">
				<select data-toggle="selectpicker" data-defval="${page.pageSize!}" data-toggle-change="changepagesize" >
		    		<option value="15">15</option>
		        	<option value="30">30</option>
		        	<option value="50">50</option>
		        	<option value="100">100</option>
		    	</select>
			</div>
			<span>&nbsp;条，共 ${(page.totalRow)!0} 条</span>
		</div>
		<div class="pagination-box" data-toggle="pagination" data-total="${(page.totalRow)!0}" data-page-size="${(page.pageSize)!15}" data-page-current="${(page.pageCurrent)!1}">
		</div>
	</div>
</div>




